let url = 'nowco/discuss/v2/get?mm=1&ss=2&ww=3'
function decode (url) {
  let res = { }
  let start = url.lastIndexOf('?')
  url = url.slice(start + 1).split('&')
  url.forEach(el => {
    let [ key, val ] = el.split('=')
    res[key] = val
  })
  console.log(res)
  return res
}

decode(url)
